#include "adc_app.h"

void AdcTask(void)
{
    uint32_t adc_sum = 0;

    for (uint8_t i = 0; i < 32; i++)
    {
        adc_sum += adc0_value[i];
    }

    adc0_voltage = (float)adc_sum / 32.0f * 3.3f / 4095.0f;
}
